package com.wn32.main.demo18;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        String sql = "select *  from student";
        long id = IdGenerator.nextId();
        System.out.println("id:" + id);

        String sql1 = "insert into student(id,name,sex,birth,department,address,state) values("+id+",'b','男',now(),'wn32','null',2) ";

        DbUtils.exec(sql1);
        List<Student> list = DbUtils.query(sql, Student.class);
        list.forEach(System.out::println);
        //测试id生成器
//        long id = IdGenerator.nextId();
//        System.out.println("id:" + id);
  
    }
}
